package com.jiaai.shop.store.entity;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author
 * @since 2018-04-12
 */
@TableName("s_order")
public class SOrder extends Model<SOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
	private String orderId;
    /**
     * 商品编号
     */
	private Integer goodsId;
    /**
     * 商品名称
     */
	private String goodsName;
    /**
     * 购买数量
     */
	private Integer goodsNumber=1;
	private String goodsImg;
    /**
     * 商品的价格
     */
	private BigDecimal goodsPrice;
	private String error;
    /**
     * 创建时间 
     */
	private Date createTime=new Date();
    /**
     * 状态；0表示代付款；1已付款
     */
	private Integer status=0;
    /**
     * 会员编号
     */
	private String memberId;


	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public Integer getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getGoodsNumber() {
		return goodsNumber;
	}

	public void setGoodsNumber(Integer goodsNumber) {
		this.goodsNumber = goodsNumber;
	}

	public String getGoodsImg() {
		return goodsImg;
	}

	public void setGoodsImg(String goodsImg) {
		this.goodsImg = goodsImg;
	}

	public BigDecimal getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(BigDecimal goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	@Override
	protected Serializable pkVal() {
		return this.orderId;
	}

}
